//
//  uiData.cpp
//  trail-map-editor
//
//  Created by Giorgio Tino on 3/4/13.
//
//

#include "ui.h"

uiData::uiData(const char* name, uiView* view, void * userData)
: name(0)
, view(0)
, userData(0)
{
	if(name)
		this->name = ulStrDup(name);
	
	this->view = view;
	this->userData = userData;
}

uiData::~uiData()
{
	if(name)
		delete[] name;
}